package com.houtai.dao;

import com.houtai.bean.TdJobExperience;
import com.houtai.bean.vo.resume.TdJobExperienceList;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TdJobExperienceDao {
    /**
     * @Purpose:    添加工作经历
     * @param:      tdJobExperience
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/21
     * @return:     void
     */
    void insertTdJobExperience(TdJobExperience tdJobExperience);
    /**
     * @Purpose   查找工作经历列表
     * @param     resume_id
     * @version   1.0
     * @author    李准
     * @time      2017-08-19
     * @return    List<TdJobExperienceList>
     */
    List<TdJobExperienceList> findTdJobExperienceList(int resume_id);
    /**
     * @Purpose:    根据用户id查找工作经历
     * @param:      user_id
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/21
     * @return:     int
     */
    TdJobExperience findTdJobExperience(@Param("user_id")int user_id,
                                                @Param("job_experience_id")int job_experience_id);
    /**
     * @Purpose:    修改工作经历
     * @param:      tdResume
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/21
     * @return:     void
     */
    void updateTdJobExperience(TdJobExperience tdJobExperience);

    /**
     * @Purpose:    修改工作经历状态
     * @param:      tdResume
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/21
     * @return:     void
     */
    void updateTdJobExperienceState(@Param("user_id")int user_id);
}
